# Contributor: dai9ah <dai9ah@protonmail.com>
# Maintainer: dai9ah <dai9ah@protonmail.com>
pkgname=bfs
pkgver=2.5
pkgrel=0
pkgdesc="Breadth-first variant of the UNIX find command"
url="https://github.com/tavianator/bfs"
arch="all"
license="0BSD"
makedepends="acl-dev attr-dev libcap-dev linux-headers oniguruma-dev"
checkdepends="bash acl coreutils"
subpackages="$pkgname-doc $pkgname-bash-completion"
source="bfs-$pkgver.tar.gz::https://github.com/tavianator/bfs/archive/$pkgver.tar.gz"

build() {
	make
}

check() {
	TEST_FLAGS="--verbose" make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
0273b1b7a86c30d5164664732fcd5eefb4ed42d2ed3b1b933d7c023e2829c2acd3817952f2f32e7a973b314064403e352524f341142706fbc81e733508f87766  bfs-2.5.tar.gz
"
